<script type="text/javascript" src="../media/system/js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="../media/system/js/jQuery.vietvang.validate.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
        $('#adminForm').validate({
        });
    });
</script>
<div id="jm-left" class="" >
    <div class="jm-module " id="">
       <div class="jm-module-content">
          <h3 class="jm-title">アンケート</h3>
          <h2 class="title_h2">◆検索</h2>
          <div class="content-message">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tbody>
                    <tr>
                        <td width="30" height="24" align="right" nowrap="">■&nbsp;</td>
                        <td width="170">アンケート名</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <input type="text" id="jformSERQ_TITLE_SEARCH" name="jform[SERQ_TITLE_SEARCH]" value="<?php echo $this->filter['SERQ_TITLE_SEARCH'] ?>" />
                            
                    
                        </td>
                    </tr>
                    <tr>
                        <td width="30" height="24" align="right" nowrap="">■&nbsp;</td>
                        <td width="170">開始日</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                           <?php if($this->filter['SERQ_START_SEARCH'] != 0){ $dt = date('Y-m-d',strtotime($this->filter['SERQ_START_SEARCH']));}else{ $dt=null;} echo JHtml::calendar($dt, 'jform[SERQ_START_SEARCH]', 'jformSTART');?>
                            <span name="msg_error">
                        </td>
                    </tr>
                    
                    <tr>
                        <td width="30" height="24" align="right" nowrap="">■&nbsp;</td>
                        <td width="170">完了日</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <?php if($this->filter['SERQ_FINISH_SEARCH'] != 0){ $dt = date('Y-m-d',strtotime($this->filter['SERQ_FINISH_SEARCH']));}else{ $dt=null;} echo JHtml::calendar($dt, 'jform[SERQ_FINISH_SEARCH]', 'jformFINISH');?>
                            <span name="msg_error">
                        </td>
                    </tr>
                    <tr>
                    <td></td>
                    <td align="center">
                    <input type="submit" id="search" onclick="Joomla.submitbutton('search')" value="検索" />
                    </td>
                    </tr>
                    </tbody></table>
    
          </div>
          <input type="hidden" name="task" value="search"/>
          <input type="hidden" name="check" value="1"/>
          <div class="clearfix"></div>
          
       </div>
    </div>
    
 </div>
 <script>
     window.addEvent('domready', function() {Calendar.setup({
        	// Id of the input field
        	inputField: "jformSTART",
        	// Format of the input field
        	ifFormat: "%Y-%m-%d",
        	// Trigger for the calendar (button ID)
        	button: "jformSTART",
        	// Alignment (defaults to "Bl")
        	align: "Bl",
        	singleClick: true,
        	firstDay: 0
    	});
    
    });
    
     window.addEvent('domready', function() {Calendar.setup({
        	// Id of the input field
        	inputField: "jformFINISH",
        	// Format of the input field
        	ifFormat: "%Y-%m-%d",
        	// Trigger for the calendar (button ID)
        	button: "jformFINISH",
        	// Alignment (defaults to "Bl")
        	align: "Bl",
        	singleClick: true,
        	firstDay: 0
    	});
    
    });

    jq('#jformSTART').css({"width":"150px","height":"12px"});
    jq('#jformFINISH').css({"width":"150px","height":"12px"});
 
 </script>
